package com.chixing.day15_map.homework;

import java.io.File;

public class FileDemo1 {
    public static void main(String[] args) {
        File file = new File("d://test1");
        showDirectory(file);
    }

    private static void showDirectory(File file) {
        File[] files = file.listFiles();
        for (File file1 : files){
            System.out.println(file1.getName());
            if (file1.isDirectory()){
                showDirectory(file1);
            }
        }
    }
}
